﻿<UserControl xmlns:my="clr-namespace:TextAdventures.Quest.EditorControls"  x:Class="TextAdventures.Quest.EditorControls.IfEditorChild"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Label Name="lblIf" Padding="0,3,10,0">If:</Label>
            <my:ExpressionControl x:Name="ctlExpression" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" />
            <Button Name="cmdDelete" Click="cmdDelete_Click" Grid.Column="2" Padding="10,0,10,0" Margin="10,0,0,0">Remove</Button>
        </Grid>
        <my:ScriptExpander x:Name="ctlScriptExpander" Grid.Row="1" Grid.ColumnSpan="2" Padding="20,0,0,0" />
    </Grid>
</UserControl>
